<div class="vendorLocations view">
<h2><?php  __('Vendor Location');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $vendorLocation['VendorLocation']['id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Ext Location'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $vendorLocation['VendorLocation']['ext_location']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Street Address'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $vendorLocation['VendorLocation']['street_address']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Zipcode'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $this->Html->link($vendorLocation['Zipcode']['id'], array('controller' => 'zipcodes', 'action' => 'view', $vendorLocation['Zipcode']['id'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Vendor'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $this->Html->link($vendorLocation['Vendor']['id'], array('controller' => 'vendors', 'action' => 'view', $vendorLocation['Vendor']['id'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Email'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $vendorLocation['VendorLocation']['email']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Vendor Location Note'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $vendorLocation['VendorLocation']['vendor_location_note']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Vendor Location Lead Min'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $vendorLocation['VendorLocation']['vendor_location_lead_min']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Allow Preorder'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $vendorLocation['VendorLocation']['allow_preorder']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Allow Delivery'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $vendorLocation['VendorLocation']['allow_delivery']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Allow Carryout'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $vendorLocation['VendorLocation']['allow_carryout']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Menu'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $this->Html->link($vendorLocation['Menu']['id'], array('controller' => 'menus', 'action' => 'view', $vendorLocation['Menu']['id'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Gps Latitude'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $vendorLocation['VendorLocation']['gps_latitude']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Gps Longitude'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $vendorLocation['VendorLocation']['gps_longitude']; ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Vendor Location', true), array('action' => 'edit', $vendorLocation['VendorLocation']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('Delete Vendor Location', true), array('action' => 'delete', $vendorLocation['VendorLocation']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $vendorLocation['VendorLocation']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Vendor Locations', true), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Vendor Location', true), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Zipcodes', true), array('controller' => 'zipcodes', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Zipcode', true), array('controller' => 'zipcodes', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Vendors', true), array('controller' => 'vendors', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Vendor', true), array('controller' => 'vendors', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Menus', true), array('controller' => 'menus', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Menu', true), array('controller' => 'menus', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Orders', true), array('controller' => 'orders', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Order', true), array('controller' => 'orders', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Promotions', true), array('controller' => 'promotions', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Promotion', true), array('controller' => 'promotions', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Vendor Location Hours', true), array('controller' => 'vendor_location_hours', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Vendor Location Hour', true), array('controller' => 'vendor_location_hours', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Vendor Location Phones', true), array('controller' => 'vendor_location_phones', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Vendor Location Phone', true), array('controller' => 'vendor_location_phones', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php __('Related Orders');?></h3>
	<?php if (!empty($vendorLocation['Order'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Vendor Location Id'); ?></th>
		<th><?php __('Location Id'); ?></th>
		<th><?php __('User Id'); ?></th>
		<th><?php __('Created'); ?></th>
		<th><?php __('Order Status'); ?></th>
		<th><?php __('Order Due Datetime'); ?></th>
		<th><?php __('Order Type'); ?></th>
		<th><?php __('Order Security'); ?></th>
		<th><?php __('Order Gratuity'); ?></th>
		<th><?php __('Modified'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($vendorLocation['Order'] as $order):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $order['id'];?></td>
			<td><?php echo $order['vendor_location_id'];?></td>
			<td><?php echo $order['location_id'];?></td>
			<td><?php echo $order['user_id'];?></td>
			<td><?php echo $order['created'];?></td>
			<td><?php echo $order['order_status'];?></td>
			<td><?php echo $order['order_due_datetime'];?></td>
			<td><?php echo $order['order_type'];?></td>
			<td><?php echo $order['order_security'];?></td>
			<td><?php echo $order['order_gratuity'];?></td>
			<td><?php echo $order['modified'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'orders', 'action' => 'view', $order['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'orders', 'action' => 'edit', $order['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'orders', 'action' => 'delete', $order['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $order['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Order', true), array('controller' => 'orders', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Promotions');?></h3>
	<?php if (!empty($vendorLocation['Promotion'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Vendor Location Id'); ?></th>
		<th><?php __('Promotion Type'); ?></th>
		<th><?php __('Promotion Action'); ?></th>
		<th><?php __('Promotion Value'); ?></th>
		<th><?php __('Created'); ?></th>
		<th><?php __('Modified'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($vendorLocation['Promotion'] as $promotion):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $promotion['id'];?></td>
			<td><?php echo $promotion['vendor_location_id'];?></td>
			<td><?php echo $promotion['promotion_type'];?></td>
			<td><?php echo $promotion['promotion_action'];?></td>
			<td><?php echo $promotion['promotion_value'];?></td>
			<td><?php echo $promotion['created'];?></td>
			<td><?php echo $promotion['modified'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'promotions', 'action' => 'view', $promotion['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'promotions', 'action' => 'edit', $promotion['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'promotions', 'action' => 'delete', $promotion['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $promotion['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Promotion', true), array('controller' => 'promotions', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Vendor Location Hours');?></h3>
	<?php if (!empty($vendorLocation['VendorLocationHour'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Vendor Location Id'); ?></th>
		<th><?php __('Schedule Type'); ?></th>
		<th><?php __('Schedule Day'); ?></th>
		<th><?php __('Schedule Open'); ?></th>
		<th><?php __('Schedule Close'); ?></th>
		<th><?php __('Schedule Crosses Midnight'); ?></th>
		<th><?php __('Created'); ?></th>
		<th><?php __('Modified'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($vendorLocation['VendorLocationHour'] as $vendorLocationHour):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $vendorLocationHour['id'];?></td>
			<td><?php echo $vendorLocationHour['vendor_location_id'];?></td>
			<td><?php echo $vendorLocationHour['schedule_type'];?></td>
			<td><?php echo $vendorLocationHour['schedule_day'];?></td>
			<td><?php echo $vendorLocationHour['schedule_open'];?></td>
			<td><?php echo $vendorLocationHour['schedule_close'];?></td>
			<td><?php echo $vendorLocationHour['schedule_crosses_midnight'];?></td>
			<td><?php echo $vendorLocationHour['created'];?></td>
			<td><?php echo $vendorLocationHour['modified'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'vendor_location_hours', 'action' => 'view', $vendorLocationHour['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'vendor_location_hours', 'action' => 'edit', $vendorLocationHour['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'vendor_location_hours', 'action' => 'delete', $vendorLocationHour['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $vendorLocationHour['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Vendor Location Hour', true), array('controller' => 'vendor_location_hours', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Vendor Location Phones');?></h3>
	<?php if (!empty($vendorLocation['VendorLocationPhone'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Vendor Location Id'); ?></th>
		<th><?php __('Phone Type'); ?></th>
		<th><?php __('Phone Num'); ?></th>
		<th><?php __('Created'); ?></th>
		<th><?php __('Modified'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($vendorLocation['VendorLocationPhone'] as $vendorLocationPhone):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $vendorLocationPhone['id'];?></td>
			<td><?php echo $vendorLocationPhone['vendor_location_id'];?></td>
			<td><?php echo $vendorLocationPhone['phone_type'];?></td>
			<td><?php echo $vendorLocationPhone['phone_num'];?></td>
			<td><?php echo $vendorLocationPhone['created'];?></td>
			<td><?php echo $vendorLocationPhone['modified'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'vendor_location_phones', 'action' => 'view', $vendorLocationPhone['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'vendor_location_phones', 'action' => 'edit', $vendorLocationPhone['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'vendor_location_phones', 'action' => 'delete', $vendorLocationPhone['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $vendorLocationPhone['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Vendor Location Phone', true), array('controller' => 'vendor_location_phones', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
